import request from '@/utils/request'

// 查询商品服务列表
export function listProductService(query) {
  return request({
    url: '/product/productService/list',
    method: 'get',
    params: query
  })
}

// 查询商品服务详细
export function getProductService(id) {
  return request({
    url: '/product/productService/' + id,
    method: 'get'
  })
}

// 新增商品服务
export function addProductService(data) {
  return request({
    url: '/product/productService',
    method: 'post',
    data: data
  })
}

// 修改商品服务
export function updateProductService(data) {
  return request({
    url: '/product/productService',
    method: 'put',
    data: data
  })
}

// 删除商品服务
export function delProductService(id) {
  return request({
    url: '/product/productService/' + id,
    method: 'delete'
  })
}
